package com.cx.service;

import com.cx.entity.Dept;
import com.cx.mapper.DeptMapper;
import lombok.Data;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface DeptService {
    //查询所有
    List<Dept> selectAllDept();

    //通过ID查询

    Dept selectDeptById(int id);
    //删除一个

    Boolean deleteDept(int id);
    //新增一个

    Boolean insertDept(Dept dept);
    //修改一个

    Boolean updateDept(Dept dept);
}
